<%-- 
    Document   : order
    Created on : 10-déc.-2011, 14:11:28
    Author     : laurent
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    
    <head>
        <meta http-equiv="content-type" content="text/html; charset=utf-8" />
        <fmt:setBundle basename="packageLanguage.lang" scope="session"/>       
        <meta name="keywords" content="" />
        <meta name="description" content="" />
        <link href="css/tempstyle.css" rel="stylesheet" type="text/css" media="screen" />

        <title><fmt:message key = "textWindowCartSummary"/></title>
    </head>
    
    <body>
        <div id="wrapper">
            <div id="logo">
              <jsp:include page="header.jsp"/>  
            </div>
            <hr />
            <!-- end #logo -->
            <div id="header">
		<div id="menu">
			<ul>
				<li><a href="index.jsp" class="first"><fmt:message key = "textFooterHome"/></a></li>
            			<li><a href="CatalogController"><fmt:message key = "textFooterArticles"/></a></li>
				<li><a href="about.jsp"><fmt:message key = "textFooterAbout"/></a></li>
				<li><a href="contact.jsp"><fmt:message key = "textFooterContact"/></a></li>
			</ul>
		</div>
		<!-- end #menu -->
            </div>
        
            <div id="page">
                <div id="page-bgtop">
                    <c:set var="pagename" scope="request" value="order.jsp"/>
                    <jsp:include page="langpanel.jsp"></jsp:include>

                    <div id="content">
                        <div class="post">
                            
                            
                             <h2 class="title"><fmt:message key = "textTitleOrderSummary"/></h2>
                             <div class="entry">

  
                                 <form name="formOrder" action="OrderController" method="POST">
                                     
                                     <table border ="1" class="basket">
                                         
                                         <tr> 
                                             <th width="55%"><fmt:message key="textProduct"/></th> 
                                             <th width="15%" align="center"><fmt:message key="textUnitPrice" /></th>
                                             <th width="15%" align="center"><fmt:message key="textTotalPrice" /></th>
                                             <th width="15%" align="center"><fmt:message key="textAmount" /></th>
                                         </tr>    
                                             
                                         <c:forEach var = "productLine" items = "${sessionScope.basket.hashProductsLine}" >
                                             <tr>
                                                 <td>${productLine.value.product.name}</td>
                                                 <td align="center">${productLine.value.priceUnit} €</td>
                                                 <td align="center">${productLine.value.priceTot} €</td>
                                                 <td align="center">${productLine.value.nbProducts}</td>   
                                             </tr>
                                         </c:forEach >
                                         
                                    </table>
                                    <div class="artPrice"><fmt:message key="textPriceTotOrder" /> ${priceTotOrder} €</div>    
                                         
                                 </form>
                                         
                                <br/><br/> 
                                
                                <form name="formOrder" action ="OrderController" method="POST">
                                    <input type="button" name="GoBack" value="<fmt:message key="textBackToBasket" />" onClick="document.location = 'basket.jsp';" />
                                    &nbsp;
                                    <input type="submit" name="confirmOrder" value="<fmt:message key="textConfirmOrder"/>" onClick="document.formOrder.submit();"/>   
                                </form>
                             </div>
                        </div>
                    </div>
                             
                </div>              
            </div>
                             
            <jsp:include page="footer.jsp"></jsp:include> 
            
        </div>
    </body>
</html>